/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package apus.persistence.proxy;

import apus.entity.Call;
import apus.entity.PhoneNumber;
import apus.persistence.CallDAO;
import java.util.Date;

/**
 * The <code>CallProxy</code> class represents APUS call-proxy.
 * @author  Maxim Vasilevsky
 * @author  Roman Dyatkovsky
 * @see     AbstractProxy
 * @since   APUS v0.5
 */
public class CallProxy extends AbstractProxy<Call, CallDAO> implements Call{

    public CallProxy() {
        super(CallDAO.class);
    }

    @Override
    public Date getDateOfCall() {
        return getProxy().getDateOfCall();
    }

    @Override
    public int getDuration() {
        return getProxy().getDuration();
    }

    @Override
    public PhoneNumber getNumberFrom() {
        return getProxy().getNumberFrom();
    }

    @Override
    public PhoneNumber getNumberTo() {
        return getProxy().getNumberTo();
    }
    
    @Override
    public String toString() {
        return getProxy().toString();
    }

}